package com.jeethink.gs.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.jeethink.common.annotation.Excel;
import com.jeethink.common.core.domain.BaseEntity;

/**
 * 公司对象 gs_company
 * 
 * @author jeethink
 * @date 2022-08-10
 */
public class GsCompany extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 公司id 唯一编号 */
    private String id;

    /** 区域名称 */
    @Excel(name = "区域名称")
    private String name;

    /** 排序 */
    @Excel(name = "排序")
    private Integer sort;

    /** 上级公司编号 */
    @Excel(name = "上级公司编号")
    private String parentId;

    /** 所属层级 -1-未知（1：一级 2:二级 3：三级，......） */
    @Excel(name = "所属层级 -1-未知", readConverterExp = "1=：一级,2=:二级,3=：三级，......")
    private Integer isDivision;

    /** 公司状态（0：正常 1：停用） */
    @Excel(name = "公司状态", readConverterExp = "0=：正常,1=：停用")
    private String status;

    /** 创建人 */
    @Excel(name = "创建人")
    private String createUser;

    /** 删除标记(0-正常 1-删除) */
    private String delFlag;

    public void setId(String id) 
    {
        this.id = id;
    }

    public String getId() 
    {
        return id;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setSort(Integer sort) 
    {
        this.sort = sort;
    }

    public Integer getSort() 
    {
        return sort;
    }
    public void setParentId(String parentId) 
    {
        this.parentId = parentId;
    }

    public String getParentId() 
    {
        return parentId;
    }
    public void setIsDivision(Integer isDivision) 
    {
        this.isDivision = isDivision;
    }

    public Integer getIsDivision() 
    {
        return isDivision;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }
    public void setCreateUser(String createUser) 
    {
        this.createUser = createUser;
    }

    public String getCreateUser() 
    {
        return createUser;
    }
    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("sort", getSort())
            .append("parentId", getParentId())
            .append("isDivision", getIsDivision())
            .append("status", getStatus())
            .append("createUser", getCreateUser())
            .append("createTime", getCreateTime())
            .append("delFlag", getDelFlag())
            .toString();
    }
}
